package com.woniuxy.direct.listener;

import com.woniuxy.po.TopicMail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 22/12/29/0029 16:27
 * @Component: 成都蜗牛学苑
 **/
@Component
public class DirectListener2 {
    @RabbitListener(queues = "DirectQueue2",ackMode = "AUTO")
    public void directListener(TopicMail topicMail){
        System.out.println("直连交换机监听第2个队列："+topicMail);
    }
}
